package cn.stylefeng.guns.modular.business.frequency.appmessage.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 系统消息表
 *
 * @author 刘耀
 * @date 2022/02/01 11:05
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AppMessageParam extends BaseParam {

    /**
     * 租户号
     */
    @NotNull(message = "租户号不能为空", groups = {edit.class, delete.class})
    private Long id;

    /**
     * 删除标志 1 正常 2 删除 3 禁用
     */
    private Integer delFlag;

    /**
     * 关联的订单id
     */
    private Long orderId;
    /**
     * 子订单号
     */
    private String orderSubNo;

    /**
     * 网点id
     */
    private Long siteId;

    /**
     * 用户id
     */
    private String userIds;


    /**
     * 1 提车提醒 2 验车提醒 3 中转签收提醒  4 签收提醒  5 交付提醒
     */
    private Integer messageType;

    /**
     * 是否已读 1 否2 是
     */
    private Integer isRead;

    /**
     * 消息标题
     */
    @NotNull(message = "消息标题不能为空", groups = {add.class, edit.class})
    private String title;

    /**
     * 消息内容
     */
    @NotNull(message = "消息内容不能为空", groups = {add.class, edit.class})
    private String content;

    /**
     * 租户id
     */
    private Long tenantId;

    private List<Long> dataList;


}
